



	<th>序号</th>
	<th>供应商</th>
	<th>价款</th>
<{foreach from=$dlist key=dept_id item=dept}>
	<th><{$dept}></th>
<{/foreach}>
	<th>类型</th>
	<th>备注</th>
</tr>
<!-- <{$index++}> -->
<{if $list}><{foreach item=supplier key=supplier_id from=$list}>
<{if $supplier.total!='0.00'}> 
	<tr class="nobg">
		<td rowspan="<?= count($supplier.types)+2 ?>"><{=$index++}></td>
		<td rowspan="<?= count($supplier.types)+1 ?>"><{$supplier.supplier_name}></td>
		<td colspan="<?= count($dlist)+2 ?>" style="height:0;padding:0;border:0;"></td>
		<td rowspan="<?= count($supplier.types)+2 ?>">&nbsp;</td>
	</tr>
	<{foreach item=type key=type_id from=$supplier.types}>
	<tr>
<!--		<td><{$supplier.supplier_name}></td>-->
		<td><div class="decimal fnum"><{= $type.total}></div></td>
		<{foreach from=$dlist key=dept_id item=dept}>
			<td><div class="decimal"><{if $type.depts[$dept_id]}><{$type.depts[$dept_id].total}><{/if}></div></td>
		<{/foreach}>
		<td><?= DemandHelper::type2text($type_id) ?></td>
	</tr>
	<{/foreach}>
	<tr>
		<td>小计:</td>
		<td><div class="decimal fnum"><{$supplier.total}></div></td>
		<td colspan="<?= count($dlist)+1 ?>">&nbsp;</td>
	</tr>
        <{/if}>
<{/foreach}><{/if}>
</table>

<div style="width:400px;">
<table border="0" class="list">
	<tr>
		<th></th>
		<th>金额（元）</th>
		<th>百分比</th>
	</tr>
	<tr>
		<td>总计</td>
		<td><div class="decimal fnum"><{$sumtotal}></div></td>
		<td>100%</td>
	</tr>
	<{foreach item=score key=type_id from=$demandtypes}>
	<tr>
		<td><?= DemandHelper::type2text($type_id) ?></td>
		<td><div class="decimal fnum"><{=$score}></div></td>
		<td><{if $sumtotal}><{= sprintf('%.02f',100*($score/$sumtotal)) }>%<{/if}></td>
	</tr>
	<{/foreach}>
</table>
</div>

<?include "FASHION/page_footer.phtml"?>
